
#include <stdio.h>
#include "module.h"



int test_1_init()
{
   printf("test1_init\r\n"); 
}


int test_1_run(void *arg)
{
   //printf("test1_run\r\n");
   static int cnt = 0 ;
   static unsigned char buf[4]; 
   if (cnt ++ == 100)
   {
      MODULE *md = (MODULE *)arg;
      md->state = STEP_CLOSE;
      post_msg(0, buf, 1);
   }

}

int test_1_close() 
{
   printf("test1_close\r\n");
}

module_init(test_1)